package com.mt.customer.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
import com.mt.customer.entity.CustomerCourseEntity;

@FeignClient(name = "customer-service")
public interface CustomerCourseFeign {
    @GetMapping("/customerCourse/findList")
    ServiceResult<List<CustomerCourseEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    @GetMapping("/customerCourse/findInfo")
    ServiceResult<CustomerCourseEntity> findInfo(Map<String, Object> params);

    @PostMapping("/customerCourse/doInsert")
    ServiceResult<Integer> doInsert(CustomerCourseEntity customerCourseEntity);

    @GetMapping("/customerCourse/doDeleteById")
    ServiceResult<Integer>  doDeleteById(Integer customerCourseId);
}
